package com.zzyl.nursing.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * 定时任务
 *
 * @Author mr.zhang
 * @Date 2025/7/28 15:08
 */
@Component
@Slf4j
public class MyTask {

    //@Scheduled(cron = "0/3 * * * * ?")
    public void task1() {
        log.info("定时任务开始执行", LocalDateTime.now());
    }
}
